package com.liucxu.zimuzu.Model.Impl;

import com.liucxu.zimuzu.Api.ArticalService;
import com.liucxu.zimuzu.Model.Bean.ArticalDetailsBean;
import com.liucxu.zimuzu.Model.IArticalDetailsInfoModel;
import com.liucxu.zimuzu.Utils.ParamsUtils;
import com.liucxu.zimuzu.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * shixian model
 * Created by liukanshan on 1/7/17.
 */

public class ArticalDetailsInfoModelImpl implements IArticalDetailsInfoModel {
    @Override
    public Observable<ArticalDetailsBean> getArticalDetail(int artcalId) {
        HashMap<String,String> values=new HashMap<>();
        values = ParamsUtils.GetCommonParams();
        values.put("id", artcalId+"");
        return ServiceFactory.GetInstance().createService(ArticalService.class).getArticalDetail(values);
    }
}
